function revise(){
    var username = $("#username").val();
    var protocol = window.location.protocol;
    var host = window.location.host;
    if (username == ""){
        layer.open({
            title: '提示信息',
            anim: 0,
            resize:false,//是否可以拉伸  默认true
            icon: 2,
            shadeClose: true,
            skin: 'layui-layer-molv',
            content: "用户名不能为空！",
            yes:function (index){
                $('#age').focus();
                layer.close(index);
            }
        });
        return "";
    }
    $.ajax({
        type : 'POST',
        url : '/forget',
        data : {username:username,protocol:protocol,host:host},
        success:function (data) {

            if (data == "OK"){
                layer.open({
                    title: '提示信息',
                    anim: 0,
                    resize:false,//是否可以拉伸  默认true
                    icon: 1,
                    shadeClose: true,
                    skin: 'layui-layer-molv',
                    content: "已经向管理员发送找回密码的邮件，请稍后使用初始化密码登录",
                    yes:function (index){
                        window.location.href = protocol+"//"+host+"/toLogin";
                        layer.close(index);
                    }
                });
            }else {
                layer.open({
                    title: '提示信息',
                    anim: 0,
                    resize:false,//是否可以拉伸  默认true
                    icon: 2,
                    shadeClose: true,
                    skin: 'layui-layer-molv',
                    content: data
                });
            }
        },
        error: function (e) {
            console.log(e)
        }
    });
}